﻿using SHZY.Common.Security;
using SHZY.Business.Entitys.Dto.QmsBusiInspectionlot;
using Mapster;
using SHZY.Common.Models;

namespace SHZY.Business.Entitys.Mapper.QmsBusiInspectionlot;

public class Mapper : IRegister
{
	public void Register(TypeAdapterConfig config)
    {
        config.ForType<QmsBusiInspectionlotEntity, QmsBusiInspectionlotInfoOutput>()
            .Map(dest => dest.materialFile, src => src.MaterialFile.ToObject<List<FileControlsModel>>())
            .Map(dest => dest.checkCardFile, src => src.CheckCardFile.ToObject<List<FileControlsModel>>());
    }
}
